<!doctype html>
<html>
<head><meta charset="utf-8">
	<title>销售合同单</title>
	<link rel="stylesheet" href="themes/default/easyui.css">
	<style type="text/css">*{margin: 0;padding: 0;box-sizing: border-box;}
	.basic tr td{border-bottom: 1px solid #C7C7C7 !important; border-left: 1px solid #C7C7C7 !important; color:#333;table-layout:fixed; height:48px;font-family: 'trebuchet MS', 'Lucida sans', Arial;
    font-size: 14px;
    color: #333;padding-left: 10px;}
.td{ background-color:#e1ebfc;  line-height:20px; align:center;}
.style1{ background-color:#3d7de5; font-size:18px; border: 1px solid #3d7de5; height:50px;  color:#ffffff;font-weight: 100;}
.basic{border-collapse: collapse; width:80%; margin-top:24px; 1px; solid; #C7C7C7; }
.textabc .textbox{  width:98% !important; ;border: 0 !important;box-shadow:none !important; border-radius:0 !important;}
.textabc .textbox-text{color:#555 !important;width:100% !important;  -webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;font-size:18px;}

.textabc1 .textbox{  width:80% !important; border: 0 !important;box-shadow:none !important; border-radius:0 !important;}
.textabc1 .textbox-text{color:#555 !important;width:100% !important;  -webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;font-size:18px;}
.textabc2 .textbox{  width:20% !important;border: 0 !important;box-shadow:none !important; border-radius:0 !important;}
.textabc2 .textbox-text{color:#555 !important;width:100% !important;  -webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;font-size:18px;}

.selec .textbox{ width:99% !important; height:28px !important;border: 1px solid #C7C7C7 !important;box-shadow: 0px 0px 1px 0px #c9c9c9 !important; border-radius:0 !important;}
.selec .combo-arrow{ width:90% !important;}
.selec .textbox-text{ width:90% !important; border-radius:0 !important; color:#c1c1c1 !important;}
.selec .combobox-item{ padding:8px !important;}

.easyui-textbox{
	width: 100%;
	height: 100%;
	border: none;
	outline: none;
	padding-left: 17px;
}
.textabc .textbox-text{
	font-size: 14px;
	line-height: 20px;
}
.aa .textbox{
	/*width: 190px !important;*/
	height: 30px !important;
	border: 1px solid #ccc !important;
	border-radius: 4px !important;
}
.sy .textbox-text{background:#fff}

.basic{
	border: 1px solid #ccc;
	border-collapse:collapse;
	border-spacing:0;
    background:#fff;
}
label {
    margin: 5px 10px;
    display: inline-block;
    max-width: 100%;
    font-weight: 700;
}
.none{
display:none;
}
	</style>
</head>
<body>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="basic" style="width:100%">
	<tbody>
		<tr>
			<th align="center" class="style1" colspan="14" width="100%">销售合同单</th>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">合同属性</td>
			<td class="textabc" width="16%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=285',required:true,editable:false" name="f_3136" style="width:200px;"></select></td>
			<td align="center" class="td" width="9%">合同类型</td>
			<td class="textabc" width="16%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=280',required:true,editable:false" id="f_3137" name="f_3137" style="width:200px;"></select></td>
			<td align="center" class="td" width="9%">申请人</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3175" size="20" /></td>
			<td align="center" class="td" width="9%">申请人部门</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3176" size="20" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">原合同号</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3177" size="20" /></td>
			<td align="center" class="td" width="9%">新合同号</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" data-options="required:true" maxlength="255" name="f_3178" size="20" /></td>
			<td align="center" class="td" style="display:none;" width="9%">序号</td>
			<td class="textabc" style="display:none;" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3179" size="20" /></td>
			<td align="center" class="td" width="9%">签约金额</td>
			<td class="textabc" width="16%"><input class="easyui-numberbox" data-options="precision:2,required:true" id="f_3180" name="f_3180" type="text" value="" /></td>
			<td align="center" class="td" width="9%">不含税金额</td>
			<td class="textabc" width="16%"><input class="easyui-numberbox" data-options="precision:2" name="f_3181" type="text" value="" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">合同名称</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" data-options="required:true" maxlength="255" name="f_3182" size="20" /></td>
			<td align="center" class="td" width="9%">合同签订日期（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-datebox" data-options="required:true" name="f_3222" type="text" /></td>
			<td align="center" class="td" width="9%">填报时间</td>
			<td class="textabc" width="16%"><input class="easyui-datebox" name="f_3184" type="text" /></td>
			<td align="center" class="td" width="9%">确认收入类型</td>
			<td class="textabc" width="16%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=282',required:true,editable:false" id="f_3185" name="f_3185" style="width:200px;"></select></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">签约日期</td>
			<td class="textabc" width="16%"><input class="easyui-datebox" data-options="required:true" id="f_3186" name="f_3186" type="text" /></td>
			<td align="center" class="td" width="9%">对方单位（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" data-options="required:true" id="f_3187" maxlength="255" name="f_3187" size="20" /></td>
			<td align="center" class="td" width="9%">项目名称</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3193" size="20" /></td>
			<td align="center" class="td" width="9%">最终用户名称</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3189" size="20" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">行业</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3190" size="20" /></td>
			<td align="center" class="td" width="9%">地区</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3191" size="20" /></td>
			<td align="center" class="td" width="9%">省份/国家</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3192" size="20" /></td>
			<td align="center" class="td" width="9%">项目编号（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_4066" size="20" /></td>
		</tr>
		<tr>
			<td align="center" class="td none" width="9%">销售模式（U8）</td>
			<td class="textabc none" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3188" size="20" /></td>
			<td align="center" class="td none" width="9%">是否同步成功（U8）</td>
			<td class="textabc none" width="16%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=273'" name="f_3984" style="width:200px;"></select></td>
			<td align="center" class="td none" width="9%">原因（U8）</td>
			<td class="textabc none" colspan="3" width="16%"><input class="easyui-textbox" multiline="true" name="f_3986" style="width: 500px; height: 80px" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">合同条款</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3194" size="20" /></td>
			<td align="center" class="td" width="9%">合同内容<br />
			（其他产品名称）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3195" size="20" /></td>
			<td align="center" class="td" width="9%">启用阶段（U8）</td>
			<td class="textabc" width="16%">
			<div id="radio_f_3196"><label><input name="f_3196" type="radio" value="是" />是</label><label><input name="f_3196" type="radio" value="否" />否</label></div>
			</td>
			<td align="center" class="td" width="9%">合同性质（U8）</td>
			<td class="textabc" width="23.5714%"><input class="easyui-textbox" id="f_3199" maxlength="255" name="f_3199" size="20" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">合同阶段组（U8）</td>
			<td class="textabc" width="16%"><span style="width:70%;display: inline-block;"><input class="easyui-textbox" maxlength="255" name="f_4009" size="20" /></span><span style="width:30%;display: inline-block;"><a class="easyui-linkbutton" href="javascript:void(0)" id="f_5060" style="width:40px;">调 用</a></span></td>
			<td align="center" class="td" width="9%">合同阶段组编码（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_4140" size="20" /></td>
			<td align="center" class="td" width="9%">销售类型（U8）</td>
			<td class="textabc" width="16%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=275'" name="f_4011" style="width:200px;"></select></td>
			<td align="center" class="td" width="9%">产品线</td>
			<td class="textabc" width="16%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=281',required:true,editable:false" id="f_4084" name="f_4084" style="width:200px;"></select></td>
			<td align="center" class="td none" width="9%">已收款金额（底表）</td>
			<td class="textabc none" width="16%"><input class="easyui-numberbox" data-options="precision:2" name="f_4086" type="text" value="" /></td>
			<td align="center" class="td none" width="9%">未收款金额（底表）</td>
			<td class="textabc none" width="16%"><input class="easyui-numberbox" data-options="precision:2" name="f_4087" type="text" value="" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">对方单位</td>
			<td class="textabc" width="16%"><span style="width:70%;display: inline-block;"><input class="easyui-textbox" id="f_3200" maxlength="255" name="f_3200" size="20" /></span><span style="width:30%;display: inline-block;"><a class="easyui-linkbutton" href="javascript:void(0)" id="f_5053" style="width:40px;">调 用</a></span></td>
			<td align="center" class="td" width="9%">对方负责人</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3201" size="20" /></td>
			<td align="center" class="td" width="9%">生效人</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3202" size="20" /></td>
			<td align="center" class="td" width="9%">合同扫描件</td>
			<td class="textabc" width="16%">
			<div id="uploader_f_3203_div">
			<div id="chose_f_3203">添加附件</div>

			<div id="files_f_3203">&nbsp;</div>
			</div>
			<input id="f_3203" name="f_3203" type="hidden" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">合同扫描件类型</td>
			<td class="textabc" width="16%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=288',editable:false" name="f_3204" style="width:200px;"></select></td>
			<td align="center" class="td" width="9%">合同扫描件类型2</td>
			<td class="textabc" width="16%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=288',editable:false" name="f_3205" style="width:200px;"></select></td>
			<td align="center" class="td" width="9%">纸质合同归档时间</td>
			<td class="textabc" width="16%"><input class="easyui-datebox" name="f_3206" type="text" /></td>
			<td align="center" class="td" width="9%">制单人（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3207" size="20" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">合同类型（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" data-options="required:true" maxlength="255" name="f_3208" size="20" value="销售" /></td>
			<td align="center" class="td" width="9%">合同编码（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" data-options="required:true" maxlength="255" name="f_3209" size="20" /></td>
			<td align="center" class="td" width="9%">合同份数（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-numberbox" data-options="precision:0" name="f_3210" type="text" value="" /></td>
			<td align="center" class="td" width="9%">客户合同编号<br />
			（底表或U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3213" size="20" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">业务员（U8）</td>
			<td class="textabc" width="16%"><span style="display:inline-block;width:70%;"><input class="easyui-textbox" data-options="required:true" id="f_3214" maxlength="255" name="f_3214" readonly="readonly" size="20" /></span><span style="display:inline-block;width:30%;"><a class="easyui-linkbutton" href="javascript:void(0)" id="f_4091" style="width:40px;">调用</a></span></td>
			<td align="center" class="td" width="9%">部门（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" id="f_3215" maxlength="255" name="f_3215" size="20" /></td>
			<td align="center" class="td" width="9%">合同开始日期（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-datebox" name="f_3224" type="text" /></td>
			<td align="center" class="td" width="9%">合同结束日期（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-datebox" name="f_3216" type="text" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">制单时间（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-datebox" data-options="required:true" name="f_3217" type="text" /></td>
			<td align="center" class="td" width="9%">业务类型（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3218" size="20" value="普通销售" /></td>
			<td align="center" class="td" width="9%">结案日期（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-datebox" name="f_3219" type="text" /></td>
			<td align="center" class="td" width="9%">合同执行金额（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-numberbox" data-options="precision:2" name="f_3220" type="text" value="" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">保修期（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3221" size="20" /></td>
			<td align="center" class="td" width="9%">合同总金额（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-numberbox" data-options="precision:2" id="f_3223" name="f_3223" type="text" value="" /></td>
			<td align="center" class="td" width="9%">币种</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" data-options="required:true" maxlength="255" name="f_3183" size="20" value="人民币" /></td>
			<td align="center" class="td" width="9%">汇率（1.0）（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3225" size="20" value="1.0" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">合同执行阶段（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3226" size="20" /></td>
			<td align="center" class="td" width="9%">结案人（U8）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3227" size="20" /></td>
			<td align="center" class="td" width="9%">产品发货时间<br />
			（底表）</td>
			<td class="textabc" width="16%"><input class="easyui-datebox" name="f_3211" type="text" /></td>
			<td align="center" class="td" width="9%">档案类型（底表）</td>
			<td class="textabc" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3212" size="20" /></td>
		</tr>
		<tr>
			<td align="center" class="td" width="9%">合同类别</td>
			<td class="textabc" width="16%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=290',required:true,editable:false" name="f_4328" style="width:200px;"></select></td>
			<td align="center" class="td" width="9%">合同签订跟踪编号</td>
			<td class="textabc" width="16%"><span style="width: 80%; display: inline-block;"><input class="easyui-textbox" maxlength="255" name="f_4351" size="20" /></span><span style="width: 20%; display: inline-block;"><a class="easyui-linkbutton" href="javascript:void(0)" id="f_4352">调 用</a></span></td>
			<td class="textabc" colspan="4">&nbsp;</td>
			<!-- <td align="center" class="td" width="9%">备注</td>
			<td class="textabc" colspan="3" width="16%"><input class="easyui-textbox" maxlength="255" name="f_3198" size="20" /></td> -->
		</tr>
		<tr>
			<td align="center" class="td" width="9%">合同描述</td>
			<td align="center" class="textabc" colspan="7" width="9%"><input class="easyui-textbox" multiline="true" name="f_3198" style="width: 500px; height: 80px" /></td>
		</tr>
		<tr class="none">
			<td align="center" class="td" width="5%">合同总数量（底表）</td>
			<td class="textabc" width="9.28571429%"><input class="easyui-numberbox" data-options="precision:0" name="f_3228" type="text" value="" /></td>
			<td align="center" class="td" width="5%">合同执行数量（底表）</td>
			<td class="textabc" width="9.28571429%"><input class="easyui-numberbox" data-options="precision:0" name="f_3229" type="text" value="" /></td>
			<td align="center" class="td" width="5%">项目确认收入(元)（底表）</td>
			<td class="textabc" width="9.28571429%"><input class="easyui-numberbox" data-options="precision:2" name="f_4042" type="text" value="" /></td>
			<td align="center" class="td" width="5%">项目成本(元)（底表）</td>
			<td class="textabc" width="9.28571429%"><input class="easyui-numberbox" data-options="precision:2" name="f_4043" type="text" value="" /></td>
			<td align="center" class="td" width="5%">项目毛利润(元)（底表）</td>
			<td class="textabc" width="9.28571429%"><input class="easyui-numberbox" data-options="precision:2" name="f_4044" type="text" value="" /></td>
			<td align="center" class="td" width="5%">已开票金额（底表）</td>
			<td class="textabc" width="9.28571429%"><input class="easyui-numberbox" data-options="precision:2" name="f_4088" type="text" value="" /></td>
			<td align="center" class="td" width="5%">未开票金额（底表）</td>
			<td class="textabc" width="9.28571429%"><input class="easyui-numberbox" data-options="precision:2" name="f_4089" type="text" value="" /></td>
		</tr>
	</tbody>
</table>
<!-- 合同明细——子表 -->

<div style="width:100%;overflow-x:auto">
<!-- <table border="1" cellpadding="0" cellspacing="0" class="basic" style="width:150%;margin:0px;border-top: none;">
	<tbody>
		<tr>
			<th align="center" class="style1" colspan="13" width="100%">合同明细&mdash;&mdash;子表</th>
		</tr>
		<tr>
			<td align="center" class="td" width="7.69230769%">销售<a class="easyui-linkbutton" href="javascript:void(0)" id="f_4903" style="width:50px;">调 用</a></td>
			<td align="center" class="td" width="7.69230769%">部门</td>
			<td align="center" class="td" width="7.69230769%">分成比例（%）</td>
			<td align="center" class="td" width="7.69230769%">大产品线</td>
			<td align="center" class="td" width="7.69230769%">产品线细分</td>
			<td align="center" class="td" width="7.69230769%">产品名称</td>
			<td align="center" class="td" width="7.69230769%">产品总额</td>
			<td align="center" class="td" width="7.69230769%">产品数量（线）</td>
			<td align="center" class="td" width="7.69230769%">产品数量（套）</td>
			<td align="center" class="td" width="7.69230769%">税率（%）</td>
			<td align="center" class="td none" width="7.69230769%">税率值</td>
			<td align="center" class="td" width="7.69230769%">税额</td>
			<td align="center" class="td" width="7.69230769%">含税单价</td>
			<td align="center" class="td" width="7.69230769%">无税单价</td>
		</tr>
		<tr>
			<td class="textabc" width="7.69230769%"><input class="easyui-textbox" maxlength="255" name="f_3232" size="20" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-textbox" maxlength="255" name="f_3233" size="20" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-textbox" maxlength="255" name="f_3234" size="20" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-textbox" maxlength="255" name="f_3235" size="20" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-textbox" maxlength="255" name="f_3236" size="20" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-textbox" maxlength="255" name="f_3237" size="20" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-numberbox" data-options="precision:2" id="sum_0" name="f_4139" type="text" value="0" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-textbox" maxlength="255" name="f_3238" size="20" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-numberbox" data-options="precision:2" name="f_3239" type="text" value="0" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-numberbox" data-options="precision:2" name="f_3240" type="text" value="0" /></td>
			<td class="textabc none" width="7.69230769%"><input class="easyui-textbox" maxlength="255" name="f_3241" size="20" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-numberbox" data-options="precision:2" name="f_3242" type="text" value="0" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-numberbox" data-options="precision:2" name="f_3243" type="text" value="0" /></td>
			<td class="textabc" width="7.69230769%"><input class="easyui-numberbox" data-options="precision:2" name="f_3244" type="text" value="0" /></td>
		</tr>
		<tr id="multiLineButton">
			<td align="center" colspan="13"><input onclick="add();" style="width: 50px; color: rgb(0, 0, 204); background-color: rgb(220, 233, 249);" type="button" value="增加" /> <input onclick="remove();" style="width: 50px; color: rgb(255, 0, 0); background-color: rgb(220, 233, 249);" type="button" value="删除" /></td>
		</tr>
	</tbody>
</table> -->
</div>
<!-- 合同标的——子表 -->

<div style="width:100%;overflow-x:auto">
<!-- <table border="1" cellpadding="0" cellspacing="0" class="basic" style="width:250%;margin:0px;border-top: none;">
	<tbody>
		<tr>
			<th align="center" class="style1" colspan="25" width="100%">合同标的子表（U8）</th>
		</tr>
		<tr>
			<td align="center" class="td" width="4%">标志</td>
			<td align="center" class="td" width="4%">标的编码（存货编码+产品编码）</td>
			<td align="center" class="td" width="4%">产品名称（标的名称）</td>
			<td align="center" class="td" width="4%">来源</td>
			<td align="center" class="td" width="4%">存货分类</td>
			<td align="center" class="td" width="4%">产品编码（存货编码）<a class="easyui-linkbutton" href="javascript:void(0)" id="f_4155" style="width:50px;">调 用</a></td>
			<td align="center" class="td" width="4%">存货规格型号</td>
			<td align="center" class="td" width="4%">产品数量（套）（数量）</td>
			<td align="center" class="td" width="4%">合同生产数量</td>
			<td align="center" class="td" width="4%">计量单位</td>
			<td align="center" class="td" width="4%">税率（税率%）</td>
			<td align="center" class="td" width="4%">签约金额（价税合计）</td>
			<td align="center" class="td" width="4%">不含税金额（无税原币金额）</td>
			<td align="center" class="td" width="4%">含税单价</td>
			<td align="center" class="td" width="4%">无税单价</td>
			<td align="center" class="td" width="4%">销售<a class="easyui-linkbutton" href="javascript:void(0)" id="f_4909" style="width:40px;">调用</a></td>
			<td align="center" class="td" width="4%">产品数量（线）（并发线数）</td>
			<td align="center" class="td" width="4%">备注</td>
			<td align="center" class="td" width="4%">执行数量</td>
			<td align="center" class="td" width="4%">执行含税金额原币</td>
			<td align="center" class="td" width="4%">项目大类<a class="easyui-linkbutton" href="javascript:void(0)" id="f_5066" style="width:50px;">调 用</a></td>
			<td align="center" class="td" width="4%">项目分类编码</td>
			<td align="center" class="td" width="4%">对应项目编码</td>
			<td align="center" class="td" width="4%">开始日期</td>
			<td align="center" class="td" width="4%">结束日期</td>
		</tr>
		<tr>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3245" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3246" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3247" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3248" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3249" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3250" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3251" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-numberbox" data-options="precision:2" name="f_3252" type="text" value="0" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3253" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3254" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-numberbox" data-options="precision:2" name="f_3255" type="text" value="0" /></td>
			<td class="textabc" width="4%"><input class="easyui-numberbox" data-options="precision:2" name="f_3256" type="text" value="0" /></td>
			签约金额
			<td class="textabc" width="4%"><input class="easyui-numberbox" data-options="precision:2" name="f_3257" type="text" value="0" /></td>
			<td class="textabc" width="4%"><input class="easyui-numberbox" data-options="precision:2" name="f_3258" type="text" value="0" /></td>
			<td class="textabc" width="4%"><input class="easyui-numberbox" data-options="precision:2" name="f_3259" type="text" value="0" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3260" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3261" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3262" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3263" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3264" size="20" /></td>
			<td class="textabc" width="4%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=272'" name="f_3265" style="width:200px;"></select></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3266" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-textbox" maxlength="255" name="f_3267" size="20" /></td>
			<td class="textabc" width="4%"><input class="easyui-datebox" name="f_3268" type="text" /></td>
			<td class="textabc" width="4%"><input class="easyui-datebox" name="f_3269" type="text" /></td>
		</tr>
		<tr id="multiLineButton2">
			<td align="center" colspan="25"><input onclick="add2();" style="width: 50px; color: rgb(0, 0, 204); background-color: rgb(220, 233, 249);" type="button" value="增加" /> <input onclick="remove2();" style="width: 50px; color: rgb(255, 0, 0); background-color: rgb(220, 233, 249);" type="button" value="删除" /></td>
		</tr>
	</tbody>
</table> -->
</div>
<!-- 收款计划--子表 -->

<!-- <table border="1" cellpadding="0" cellspacing="0" class="basic" style="width:100%;margin:0px;border-top: none;">
	<tbody>
		<tr>
			<th align="center" class="style1" colspan="7" width="100%">收款计划--子表（U8）</th>
		</tr>
		<tr>
			<td align="center" class="td" width="14.2857143%">合同阶段<a class="easyui-linkbutton" href="javascript:void(0)" id="f_5065" style="width:50px;">调 用</a></td>
			<td align="center" class="td" width="14.2857143%">收付款日期</td>
			<td align="center" class="td" width="14.2857143%">收付比例（%）</td>
			<td align="center" class="td" width="14.2857143%">收付金额</td>
			<td align="center" class="td" width="14.2857143%">结算方式<a class="easyui-linkbutton" href="javascript:void(0)" id="f_5072" style="width:50px;">调 用</a></td>
			<td align="center" class="td" width="14.2857143%">收付款条件</td>
			<td align="center" class="td" width="14.2857143%">说明</td>
		</tr>
		<tr>
			<td class="textabc" width="14.2857143%"><input class="easyui-textbox" maxlength="255" name="f_4010" size="20" /></td>
			<td class="textabc" width="14.2857143%"><input class="easyui-datebox" name="f_3270" type="text" /></td>
			<td class="textabc" width="14.2857143%"><input class="easyui-textbox" maxlength="255" name="f_3271" size="20" /></td>
			<td class="textabc" width="14.2857143%"><input class="easyui-textbox" maxlength="255" name="f_3272" size="20" /></td>
			<td class="textabc" width="14.2857143%"><input class="easyui-textbox" maxlength="255" name="f_3273" size="20" /></td>
			<td class="textabc" width="14.2857143%"><input class="easyui-textbox" maxlength="255" name="f_3274" size="20" /></td>
			<td class="textabc" width="14.2857143%"><input class="easyui-textbox" maxlength="255" name="f_3275" size="20" /></td>
		</tr>
		<tr id="multiLineButton3">
			<td align="center" colspan="7"><input onclick="add3();" style="width: 50px; color: rgb(0, 0, 204); background-color: rgb(220, 233, 249);" type="button" value="增加" /> <input onclick="remove3();" style="width: 50px; color: rgb(255, 0, 0); background-color: rgb(220, 233, 249);" type="button" value="删除" /></td>
		</tr>
	</tbody>
</table> -->
<!-- 合同条款--子表 -->

<!-- <table border="1" cellpadding="0" cellspacing="0" class="basic" style="width:100%;margin:0px;border-top: none;">
	<tbody>
		<tr>
			<th align="center" class="style1" colspan="2" width="100%">合同条款--子表（U8）</th>
		</tr>
		<tr>
			<td align="center" class="td" width="50%">名称</td>
			<td align="center" class="td" width="50%">内容</td>
		</tr>
		<tr>
			<td class="textabc" width="50%"><input class="easyui-textbox" maxlength="255" name="f_3276" size="20" /></td>
			<td class="textabc" width="50%"><input class="easyui-textbox" maxlength="255" name="f_3277" size="20" /></td>
		</tr>
		<tr id="multiLineButton4">
			<td align="center" colspan="2"><input onclick="add4();" style="width: 50px; color: rgb(0, 0, 204); background-color: rgb(220, 233, 249);" type="button" value="增加" /> <input onclick="remove4();" style="width: 50px; color: rgb(255, 0, 0); background-color: rgb(220, 233, 249);" type="button" value="删除" /></td>
		</tr>
	</tbody>
</table> -->
<!-- 大事记--子表 -->

<!-- <table border="1" cellpadding="0" cellspacing="0" class="basic" style="width:100%;margin:0px;border-top: none;">
	<tbody>
		<tr>
			<th align="center" class="style1" colspan="2" width="100%">大事记--子表（U8）</th>
		</tr>
		<tr>
			<td align="center" class="td" width="50%">大事记编码</td>
			<td align="center" class="td" width="50%">大事记内容</td>
		</tr>
		<tr>
			<td class="textabc" width="50%"><input class="easyui-textbox" maxlength="255" name="f_3278" size="20" /></td>
			<td class="textabc" width="50%"><input class="easyui-textbox" maxlength="255" name="f_3279" size="20" /></td>
		</tr>
		<tr id="multiLineButton5">
			<td align="center" colspan="2"><input onclick="add5();" style="width: 50px; color: rgb(0, 0, 204); background-color: rgb(220, 233, 249);" type="button" value="增加" /> <input onclick="remove5();" style="width: 50px; color: rgb(255, 0, 0); background-color: rgb(220, 233, 249);" type="button" value="删除" /></td>
		</tr>
	</tbody>
</table> -->
<!-- 附件--子表 -->

<!-- <table border="1" cellpadding="0" cellspacing="0" class="basic" style="width:100%;margin:0px;border-top: none;">
	<tbody>
		<tr>
			<th align="center" class="style1" colspan="4" width="100%">附件--子表（U8）</th>
		</tr>
		<tr>
			<td align="center" class="td" width="25%">编码</td>
			<td align="center" class="td" width="25%">名称</td>
			<td align="center" class="td" width="25%">说明</td>
			<td align="center" class="td" width="25%">路径</td>
		</tr>
		<tr>
			<td class="textabc" width="25%"><input class="easyui-textbox" maxlength="255" name="f_3280" size="20" /></td>
			<td class="textabc" width="25%"><input class="easyui-textbox" maxlength="255" name="f_3281" size="20" /></td>
			<td class="textabc" width="25%"><input class="easyui-textbox" maxlength="255" name="f_3282" size="20" /></td>
			<td class="textabc" width="25%"><input class="easyui-textbox" maxlength="255" name="f_3283" size="20" /></td>
		</tr>
		<tr id="multiLineButton6">
			<td align="center" colspan="4"><input onclick="add6();" style="width: 50px; color: rgb(0, 0, 204); background-color: rgb(220, 233, 249);" type="button" value="增加" /> <input onclick="remove6();" style="width: 50px; color: rgb(255, 0, 0); background-color: rgb(220, 233, 249);" type="button" value="删除" /></td>
		</tr>
	</tbody>
</table> -->
</div>
<script type="text/javascript" src="jquery.min.js"></script>
<script src="http://119.3.226.167:8866/rap/easyui/jquery.easyui.min.js"></script>
<!-- 隐藏字段（无用）-->

<div style="display:none">
<!-- <table>
	<tbody>
		<tr>
			<td align="center" class="td" width="5%">付款条件</td>
			<td class="textabc" width="9.28571429%"><input class="easyui-textbox" maxlength="255" name="f_3197" size="20" /></td>
			<td align="center" class="td" width="5%">结算方式（U8）</td>
			<td class="textabc" width="9.28571429%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=274'" name="f_4064" style="width:200px;"></select></td>
			<td align="center" class="td" width="5%">存货分类（U8）</td>
			<td class="textabc" width="9.28571429%"><select class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=276'" name="f_4012" style="width:200px;"></select></td>
		</tr>
	</tbody>
</table>
业务员工号 <input class='easyui-textbox' size=20 maxlength='255' name='f_5076'  > -->

</div>
<script type="text/javascript">
	//合同明细——子表多行
	var i = 1;
	function add(){
		var autoId = "auto"+i;
		if(i>49){
			console.log("最多添加50行！"+i);
			return;
		}
		var targetObj = $("<tr id='"+autoId+"'><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-textbox\"   maxlength=\"255\" name=\"f_3232\" size=\"20\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3233\" size=\"20\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3234\" size=\"20\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3235\" size=\"20\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3236\" size=\"20\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3237\" size=\"20\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\" name=\"f_4139\" id=\"sum_"+i+"\" type=\"text\" value=\"\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3238\" size=\"20\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\" name=\"f_3239\" id=\"sets_"+i+"\" type=\"text\" value=\"\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\" name=\"f_3240\" id=\"rate_"+i+"\" type=\"text\" value=\"\"/></td><td class=\"textabc none\" width=\"7.69230769%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3241\" size=\"20\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\" name=\"f_3242\" id=\"tax_"+i+"\"  type=\"text\" value=\"\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\" name=\"f_3243\" id=\"price_"+i+"\" type=\"text\" value=\"\" /></td><td class=\"textabc\" width=\"7.69230769%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\" name=\"f_3244\" id=\"unprice_"+i+"\" type=\"text\" value=\"\" /></td></tr>").insertBefore("#multiLineButton");
		$.parser.parse(targetObj);	
		numboxCalculate();
		i++;
		
	}
	function remove(){
		if(i<2){
			alert("至少保留一行！");
		}else{
			$("#multiLineButton").prev().remove();
			i--;
		}
	}
	
	//合同标的——子表多行
	var j = 1;
	function add2(){
		var autoId = "autoj"+j;
		if(j>49){
			console.log("最多添加50行！"+j);
			return;
		}
		var targetObj = $("<tr id='"+autoId+"'><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3245\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3246\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3247\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3248\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3249\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3250\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3251\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\"  name=\"f_3252\" id=\"shunum_"+j+"\" type=\"text\" value=\"\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3253\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3254\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\" name=\"f_3255\" type=\"text\" value=\"\" id=\"shuil_"+j+"\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\" name=\"f_3256\" id=\"signi_"+j+"\" type=\"text\" value=\"\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\" id=\"notax_"+j+"\" name=\"f_3257\" type=\"text\" value=\"\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\" id=\"taxunit_"+j+"\" name=\"f_3258\" type=\"text\" value=\"\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-numberbox\" data-options=\"precision:2\" maxlength=\"255\" id=\"taxnum_"+j+"\" name=\"f_3259\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3260\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3261\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3262\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3263\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3264\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><select class=\"easyui-combobox\" data-options=\"valueField:'id',textField:'text',url:'/rap/custom/getStruType?enumtypeId=272'\" name=\"f_3265\" style=\"width:200px;\"></select></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3266\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3267\" size=\"20\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-datebox\" name=\"f_3268\" type=\"text\" /></td><td class=\"textabc\" width=\"4%\"><input class=\"easyui-datebox\" name=\"f_3269\" type=\"text\" /></td></tr>").insertBefore("#multiLineButton2");
		$.parser.parse(targetObj);	
		numboxCalculate();
		j++;
	}
	function remove2(){
		if(j<2){
			alert("至少保留一行！");
		}else{
			$("#multiLineButton2").prev().remove();
			j--;
		}
	}
	
	//收款计划——子表多行
	var k = 1;
	function add3(){
		var autoId = "autok"+k;
		if(k>9){
			console.log("最多添加10行！"+k);
			return;
		}
		var targetObj = $("<tr id='"+autoId+"'><td class=\"textabc\" width=\"14.2857143%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_4010\" size=\"20\" /></td><td class=\"textabc\" width=\"14.2857143%\"><input class=\"easyui-datebox\" name=\"f_3270\" type=\"text\" /></td><td class=\"textabc\" width=\"14.2857143%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3271\" size=\"20\" /></td><td class=\"textabc\" width=\"14.2857143%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3272\" size=\"20\" /></td><td class=\"textabc\" width=\"14.2857143%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3273\" size=\"20\" /></td><td class=\"textabc\" width=\"14.2857143%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3274\" size=\"20\" /></td><td class=\"textabc\" width=\"14.2857143%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3275\" size=\"20\" /></td></tr>").insertBefore("#multiLineButton3");
		$.parser.parse(targetObj);		
		k++;
	}
	function remove3(){
		if(k<2){
			alert("至少保留一行！");
		}else{
			$("#multiLineButton3").prev().remove();
			k--;
		}
	}
	
	//合同条款——子表多行
	var l = 1;
	function add4(){
		var autoId = "autol"+l;
		if(l>9){
			console.log("最多添加10行！"+l);
			return;
		}
		var targetObj = $("<tr id='"+autoId+"'><td class=\"textabc\" width=\"50%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3276\" size=\"20\" /></td><td class=\"textabc\" width=\"50%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3277\" size=\"20\" /></td></tr>").insertBefore("#multiLineButton4");
		$.parser.parse(targetObj);		
		l++;
	}
	function remove4(){
		if(l<2){
			alert("至少保留一行！");
		}else{
			$("#multiLineButton4").prev().remove();
			l--;
		}
	}
	
	//大事记——子表多行
	var m = 1;
	function add5(){
		var autoId = "autom"+m;
		if(m>9){
			console.log("最多添加10行！"+m);
			return;
		}
		var targetObj = $("<tr id='"+autoId+"'><td class=\"textabc\" width=\"50%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3278\" size=\"20\" /></td><td class=\"textabc\" width=\"50%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3279\" size=\"20\" /></td></tr>").insertBefore("#multiLineButton5");
		$.parser.parse(targetObj);		
		m++;
	}
	function remove5(){
		if(m<2){
			alert("至少保留一行！");
		}else{
			$("#multiLineButton5").prev().remove();
			m--;
		}
	}
	
	//附件——子表多行
	var n = 1;
	function add6(){
		var autoId = "auton"+n;
		if(n>9){
			console.log("最多添加10行！"+n);
			return;
		}
		var targetObj = $("<tr id='"+autoId+"'><td class=\"textabc\" width=\"25%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3280\" size=\"20\" /></td><td class=\"textabc\" width=\"25%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3281\" size=\"20\" /></td><td class=\"textabc\" width=\"25%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3282\" size=\"20\" /></td><td class=\"textabc\" width=\"25%\"><input class=\"easyui-textbox\" maxlength=\"255\" name=\"f_3283\" size=\"20\" /></td></tr>").insertBefore("#multiLineButton6");
		$.parser.parse(targetObj);		
		n++;
	}
	function remove6(){
		if(n<2){
			alert("至少保留一行！");
		}else{
			$("#multiLineButton6").prev().remove();
			n--;
		}
	}
	
	//设置合同编号
	function setContractNum(){
		var contractType = $("#f_3137").combobox("getValue"); //合同类型 ，默认为 通用 项目类型 研发类 R
		var productLine = $("#f_4084").combobox("getValue"); // 产品线
		var confirmClassification =  $("#f_3185").combobox("getValue");  //确认类型
		var signDate = $("#f_3186").datebox("getValue"); // 签约日期
		if(contractType&&productLine&&confirmClassification&&signDate){
			$.post("/rap/generatedNumber/generatedContractNumber",{"contractType":contractType,"productLine":productLine,"confirmClassification":confirmClassification,"signDate":signDate},function(data){
				if(data){
					$('input[textboxName=f_3178]').textbox('setValue',data);
				}
			});
		}
		
	}
	
	$(function(){
		 //合同类型发生改变时 触发
		/*  $("#f_3137").combobox({
			onSelect:function(record){
					setContractNum();
					contractNature();
		 	},
		 	onChange:function(){
		 		contractNature();
		 	}
		 });
		 
		 //确认收入类型
		 $("#f_3185").combobox({
			onSelect:function(record){
					setContractNum();
		 	}
		 });
		 
		 //产品线
		 $("#f_4084").combobox({
				onSelect:function(record){
						setContractNum();
			 	}
			 });
		 
		//签约日期
		 $("#f_3186").datebox({
			onSelect:function(record){
					setContractNum();
		 	}
		 });
		//签约金额       设置合同总金额（合同总金额等于签约金额）
		 $("#f_3180").next("span").children().first().blur(function(){
			 $('#f_3223').numberbox('setValue',$(this).val());
		});
		
		//f_3200
		$("#f_3200").textbox({
			onChange : function(newValue){
				$("#f_3187").textbox("setValue",newValue);
			}
			
		}); */
		
	});
	
	//设置合同性质
	function contractNature(){
		var contractType = $("#f_3137").combobox("getValue"); // 合同性质跟合同类型关联，合同类型选择销售，显示销售类合同
		if(contractType.indexOf("销售")!=-1){
			var conNature=contractType+"类合同";
			$('#f_3199').textbox('setValue',conNature);
		}else{
			$('#f_3199').textbox('setValue','');
		}
	}

	
function numboxCalculate(){
		$('.easyui-numberbox').each(function(){
			$(this).numberbox('textbox').bind('blur',function(){
				chg();
	 			changdx();
		});	
		});
	}
	
	
</script></body>
</html>
